package com.flida.ecfront.control;

import com.flida.echart.basic.api.account.service.HelloService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
/**
 * Created by yzc on 2016/12/4.
 */
@Controller
@RequestMapping("/test")
public class HellowControl {
    @Resource
    private HelloService helloService;
    @RequestMapping(value = "hello.html", method = { RequestMethod.GET,
            RequestMethod.POST }, produces = "text/html;charset=UTF-8")
    @ResponseBody
    public  String hello(){

        return helloService.sayHello("dd");

    }
}
